# -*- coding:utf-8 -*-
from flask import jsonify


def info_jsonfy(code, msg, data=None):
    if data is None:
        data = []
    return jsonify(code=code, msg=u"{}".format(msg), data=data)
